import 'package:mziot/app/data/circle_detail_entity.dart';
import 'package:mziot/generated/json/base/json_convert_content.dart';

CircleDetailEntity $CircleDetailEntityFromJson(Map<String, dynamic> json) {
  final CircleDetailEntity circleDetailEntity = CircleDetailEntity();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    circleDetailEntity.id = id;
  }
  final String? mainTitle = jsonConvert.convert<String>(json['mainTitle']);
  if (mainTitle != null) {
    circleDetailEntity.mainTitle = mainTitle;
  }
  final String? subTitle = jsonConvert.convert<String>(json['subTitle']);
  if (subTitle != null) {
    circleDetailEntity.subTitle = subTitle;
  }
  final String? content = jsonConvert.convert<String>(json['content']);
  if (content != null) {
    circleDetailEntity.content = content;
  }
  return circleDetailEntity;
}

Map<String, dynamic> $CircleDetailEntityToJson(CircleDetailEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['mainTitle'] = entity.mainTitle;
  data['subTitle'] = entity.subTitle;
  data['content'] = entity.content;
  return data;
}
